home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 108_01 / rt11.doc < prev    next >
Text File  |  1985-11-13  |  8KB  |  151 lines

  1.  
  2.                      ** RT-11 to CP/M Converter Package **
  3.                            ** User Documentation **
  4.  
  5. 1.0  Introduction
  6.  
  7.      The RT-11 to CP/M converter is designed to facilitate communication
  8. between CP/M and RT-11 speaking systems.  Both systems are numerous, and a
  9. given person is likely to have to move files back and forth between systems of
  10. the two types.  For example, an individual may want to exchange files between
  11. his personal CP/M system and his company's RT-11 system.  I wrote this package
  12. for my own personal use, so I can justify distributing it in the public domain
  13. as it is, in effect, "paid for".
  14.  
  15.      Since I am making no money on this thing, I would resent it highly if
  16. anyone else reaped any profit from my effort.  Sharing the wealth is one thing,
  17. but when there is no wealth to share.....  I claim copyright on the package so
  18. that I can get legally annoyed at anyone who tries to sell the package.  The
  19. deal is this:  You may make as many copies for as many people as you like.  You
  20. may charge them no more than the cost of a disk (if you provide it), a shipping
  21. container (if needed and you provide it), and postage (if needed).  I had a
  22. quesion recently from a user about giving the package to a business--I know
  23. that they have lots of money, but it's free to them, too.
  24.  
  25.      With the end of the speech, lets get down to business!
  26.  
  27.  
  28. 2.0  Starting the Package Up
  29.  
  30.      I provide compiled objects to everybody as not everybody has a new-enough
  31. revision of BDS C to compile the thing.  Other mishaps occur, too.  You still
  32. need to know how to compile the thing, though, in case you lose the object or
  33. in case you modify the package.  Anyhow, to compile the program, you will need
  34. Version 1.4 or later of Leor Zolman's (i.e. BD Software's) C compiler.  For BDS
  35. C, see Lifeboat Associates in New York City.  The command sequence goes like
  36. this:
  37.  
  38.      A>CC1 RT11.C
  39.      A>CC1 RTMISC.C
  40.      A>CC1 RTFILES.C
  41.      A>CLINK RT11 RTMISC RTFILES
  42.  
  43. It is important that the linkage be done on one line as the library rename()
  44. function will be pulled instead of the rename() function in RTFILES.C if you
  45. don't.  Anyhow, you now have RT11.COM and three intermediate files RT*.CRL.
  46. Kill the .CRL files if you want to as they are no longer needed.
  47.  
  48.      To actually run the package, type RT11 with no parameters.  The package
  49. will load and demand that you put your RT-11 disk in drive B and your CP/M disk
  50. in drive A.  Do so.  If the RT-11 disk doesn't have a valid directory yet (a
  51. new disk), that's OK.  Type carriage return.  If you type anything but just
  52. return, the package will not go into operation.  At this point, the package
  53. will ask for today's date as mm/dd/yy.  This establishes the system date word
  54. for any RT-11 files created.  A valid system date word appears to be a must for
  55. Version 3 RT-11 systems.  Once you have a valid date in place, the package will
  56. ask for a command.  Invalid commands draw a list of valid commands.  ? is an
  57. invalid command, so ? will get you help if you need it.  Commands are a single
  58. letter. Any additional letters are ignored.  Additional data needed by a
  59. command is asked for via a fairly detailed prompt set.
  60.  
  61. 3.0  Commands
  62.  
  63. 3.1  ? (Help)
  64.  
  65.      This gets you a list of valid commands.  Any invalid command will do here,
  66. but ? is easy to remember.  No parameters needed.
  67.  
  68. 3.2  D (Directory)
  69.  
  70.      This command lists the directory on the RT-11 diskette -- i.e. the disk in
  71. drive B.  No parameters needed.
  72.  
  73. 3.3  E (Erase file)
  74.  
  75.      This command prompts the user for a valid RT-11 file name.  Answering the
  76. file name prompt with just a carriage return will abort the command.  No
  77. wildcard characters are supported.  The program then erases the specified file
  78. from the RT-11 disk.
  79.  
  80. 3.4  G (Get file)
  81.  
  82.      This command gets a file from the RT-11 disk (drive B) and puts it on the
  83. CP/M disk (drive A).  The user is prompted first for the RT-11 file name, then
  84. for the CP/M file name.  Answering the RT-11 file name prompt with just a
  85. carriage return will abort the command.  Answering the CP/M file name prompt
  86. with just a carriage return will make the CP/M file have the same name as the
  87. RT-11 file.  The program will then move the file from drive B to drive A a
  88. block at a time.
  89.  
  90. 3.5  I (Initialize disk)
  91.  
  92.      This command allows you to initialize the directory and volume ID of a new
  93. diskette.  To initialize the directory, the program needs to know: 1) how many
  94. blocks of directory to allocate, and 2) how many "extra bytes" to allocate per
  95. directory entry.  For a single-density floppy (DX:), four directory segments
  96. is the usual number.  RT-11 itself does not use the extra bytes, so this is
  97. almost always 0.  With this, the program will initialize the directory.  To
  98. initialize the volume ID block, the program needs to know the volume name and
  99. the owner name.  Both names are truncated to 12 characters so that they will
  100. fit in their allotted slots on the disk.  If you answer either prompt with just
  101. a carriage return, a default value will be substituted.  The defaults are RT11A
  102. for volume name and blank for owner name.  With this, the program will
  103. initialize the volume ID block and return to command level.  For extra safety,
  104. the program asks you if you really want to do this.  Any reply except an
  105. upper-case Y will abort the command.  I make it picky in this regard since this
  106. operation causes the certain loss of all data on the disk.
  107.  
  108. 3.6  P (Put file)
  109.  
  110.      This command allows you to put a file onto the RT-11 disk (drive B) from
  111. the CP/M disk (drive A).  The program will prompt you for a CP/M file name and
  112. an RT-11 file name.  Answering either with just a carriage return will abort
  113. the command.  This differs from the G command because all valid RT-11 file
  114. names are valid CP/M file names but NOT vice-versa.  The program will then move
  115. the file from drive A to drive B a block at a time.
  116.  
  117. 3.7  Q (Quit)
  118.  
  119.      This command returns you to CP/M.  You will be given an opportunity to put
  120. in your system disk before the system is re-booted.  Change disks if necessary
  121. and type any character to re-boot.
  122.  
  123. 3.8  R (Rename file)
  124.  
  125.      This command allows you to rename a file on the RT-11 disk (drive B).  The
  126. program will prompt you for the old name.  If the file does not exist, the
  127. command aborts with a message to that effect.  Otherwise, the program prompts
  128. you for the new name and renames the file.  If you answer either name wih just
  129. a carriage return, the command aborts.
  130.  
  131. 3.9  T (Type file)
  132.  
  133.      This command lets you look at text files on the RT-11 disk (drive B).  The
  134. command prompts you for a file name.  If you answer with just a carriage
  135. return, the command aborts.  Otherwise, the file is displayed on the screen.
  136. The results with object files, etc. can be spectacular.  I haven't yet
  137. implemented an abort character, so long listings can be a bit tedious.  A
  138. control C is no good unless you want to wind up back at CP/M.
  139.  
  140.  
  141. 4.0  Summation
  142.  
  143.      I include the source code so that you can either fix the things that I
  144. haven't gotten around to implementing (the problem with non-profit things like
  145. this) or fix any bugs that you find.  I'd appreciate a shout about any bugs as
  146. I try to keep the things killed off as best I can.  Good luck!
  147.  
  148.                                              William C. Colley, III
  149.                                                   19-MAR-81
  150.  
  151.